<script src="https://cdn.bootcss.com/jquery/2.0.3/jquery.min.js"></script>
{% load static %}
{% load bootstrap3 %}

{% bootstrap_css %}
{% bootstrap_javascript %}

<style>
  body {
    padding-top: 120px;
    padding-bottom: 40px;
    background-color: #eee;

  }
  .btn
  {
   outline:0;
   border:none;
   border-top:none;
   border-bottom:none;
   border-left:none;
   border-right:none;
   box-shadow:inset 2px -3px rgba(0, 0, 0, 0.15);
  }
  .btn:focus
  {
   outline:0;
   -webkit-outline:0;
   -moz-outline:0;
  }
  .fullscreen_bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: 50% 50%;
    background-image: url('{% static "timg.jpg" %}');
    background-repeat:repeat;
  }
  .form-signin {
    max-width: 280px;
    padding: 15px;
    margin: 0 auto;
      margin-top:50px;
  }
  .form-signin .form-signin-heading, .form-signin {
    margin-bottom: 10px;
  }
  .form-signin .form-control {
    position: relative;
    font-size: 16px;
    height: auto;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .form-signin .form-control:focus {
    z-index: 2;
  }
  .form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-style: solid;
    border-right-style: solid;
    border-bottom-style: none;
    border-left-style: solid;
    border-color: #000;
  }
  .form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-style: none;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-color: rgb(0,0,0);
    border-top:1px solid rgba(0,0,0,0.08);
  }
  .form-signin-heading {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
  }
  .kuang{
    width: 500px auto;
    height: 500px;
    background-color:rgba(255,255,255,0.3);
    border-radius:100px 0;
  }
</style>
<div id="fullscreen_bg c" class="fullscreen_bg"/>
<div class="container">
<!-- <canvas id="c"> -->
  <div class="kuang">
	<form class="form-signin" id="login_form" method="post" action="/login/">
    <center><a href="/"><h1 class="form-signin-heading text-muted">高智慧 平台</h1></a></center><br/>
		<h1 class="form-signin-heading text-muted">登 录</h1>
		<input type="text" class="form-control" placeholder="用 户 名" type="text" name="username" required="" autofocus="">
		<input type="password" class="form-control" placeholder="密 码" type="password" name="password" required="">
        {% csrf_token %}
		<button class="btn btn-lg btn-primary btn-block" type="submit">
			登 录
		</button>
	</form>
	<center><h2 class="form-signin-heading text-muted">or</h2>
    <a class="btn btn-lg btn-success" href="/register" type="submit">新用户? 注册</a></center>
  </div>
<!-- </canvas> -->
</div>
</div>

